﻿@using QDT.Common
@model IList<QDT.Web.Admin.Models.LinkModel>
<div class="main_title">友情链接列表</div>
<div class="blank5"></div>
<div class="button_row">
    @Html.ActionLink("新增","Add","Link",null,new{@class="button"})
    <input type="button" class="button" value="彻底删除" onclick=" foreverdel(); ">
</div>
<div class="blank5"></div>
<div class="grid_box">
    <div class="grid_top"></div>


    <!-- Think 系统列表组件开始 -->
    @Html.Grid(Model).Columns(column => {
        column.CheckBox(x => x.Id);
        column.For(x => x.Id).Named("编号").HeaderAttributes(style => "width:50px;");
        column.For(x => x.Name).Named("网站名称").SortColumnName("Name");
        column.For(x => x.GroupName).Named("分组名称").SortColumnName("GroupId");
        column.For(x => x.IsEffect ? "有效" : "无效").Named("状态").SortColumnName("IsEffect");
        column.For(x => x.ShowIndex ? "是" : "否").Named("显示在首页底部").SortColumnName("ShowIndex");
        column.For(o => o.Sort).Named("排序").SortColumnName("Sort");
        column.For(o => o.Count).Named("点击量").SortColumnName("Count");
        column.Buttons(btns => btns.Add(x => Html.ActionLink("编辑", "Edit", new {id = x.Id}))
                                   .Add(x => Html.ScriptLink("彻底删除", "foreverdel({0})".FormatWith(x.Id))));
    }).Complex(ViewData)
    <!-- Think 系统列表组件结束 -->
 

    <div class="blank5"></div>
    <div class="page"></div>
</div>